package itheima.zuoye.test4;

public class CarTest  {
    public static void main(String[] args) {
        Car car = new Car("红旗H5", "鲁A12345");
        Taxi taxi = new Taxi("奥迪A6", "鲁B67890", "黑马出租车公司");
        FamilyCar familyCar = new FamilyCar("本田CRV", "鲁C09876", "李明");

        System.out.println("测试汽车类：");
        car.start();
        car.stop();

        System.out.println("\n测试出租车类：");
        taxi.start();
        taxi.stop();

        System.out.println("\n测试家用轿车类：");
        familyCar.start();
        familyCar.stop();
    }

}
